<link rel="stylesheet" href="${plugin}/tool/select2/dist/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${ctx}/static/css/select2.css" />
<script type="text/javascript" src="${plugin}/tool/select2/dist/js/select2.min.js"></script>
<script type="text/javascript">
var settings = {
 modelDomainFlag:"sys"
 ,modelName:"文件"
 ,modelFlag:"file"
 ,key:"${sessionId}" 
}
</script> 
<script type="text/javascript">
<!--
$script(window.global.ctx+'/static/fw/js/fw-inputTree.js','inputTree', function() {
	$script(window.global.ctx+'/static/js/sys/file/add.js','file_add', function() {
	},1);
});
//-->
</script>
<!-- 搜索框 开始 -->
<!--  -->
<div id="page-content-div">
	<div class="btn-toolbar form-actions clearfix">
	 <div class="btn-group-xs ">
		<button type="button" class="btn btn-danger btn-xs backBtn"title="返回" >
			<i class="ace-icon fa fa-reply icon-only"></i>返回
		</button> 
		  <button type="reset" class="btn btn-primary btn-xs resetBtn" formid="applyeditForm" title="重置">
		  	 <i class="ace-icon fa fa-road bigger-120"></i>重置
		  </button>
		  <button type="button" class="btn btn-primary btn-xs addBtn" formid="applyeditForm" title="保存">
		  	 <i class="ace-icon fa fa-floppy-o bigger-120"></i>保存
		   </button> 
	  </div>
	</div>
    <div class="row"  style="margin-top: 5px;margin-bottom: 5px">
  		 <div class="col-xs-12">
  		 <form id="applyeditForm" action="" class="form-horizontal editForm" role="form">
	  		  <div class="alert alert-danger hide alert-dismissable" role="alert">
				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
					<i class="ace-icon fa fa-times"></i>
				</button>
				<strong>
				<i class="ace-icon fa fa-times"></i><span class="editForm-msg-head"></span></strong>
				<span class="editForm-msg"></span>
				<br />
			</div>
		<input type="hidden" name="pId" value="${para.pId}">
		<input type="hidden" name="isParent" value="1">
		<input type="hidden" name="parents" value="${para.parents}">
				<div class="form-group  col-md-5">
				       <label for="name" class="col-sm-3 control-label no-padding-right">上级目录:</label>
				       <div class="col-sm-9 inline-height ">
							  <input type="text" value="${para.parents}" class="disabled col-xs-10" disabled="disabled"  placeholder="" />
				 	    </div> 
				 </div>
			      <div class="form-group  col-md-5">
				       <label for="name" class="required-before col-sm-3 control-label no-padding-right">文件名:</label>
				       <div class="col-sm-9 inline-height ">
							  <input type="text" oldval="" class="validate[required,maxSize[50]] col-xs-10" name="name" placeholder="文件名" />
				 	    </div> 
				   </div>
				  <%if(has(sysFlags) && sysFlags.~size>1){ %>
				 	 <%if(has(para) && !isEmpty(para.instanceId)){ %>
				        <input type="hidden"  name="instanceId" value="${para.instanceId}">
					   <% }else{ %>
					     <div class="form-group col-md-5">
						     <label class="required-before col-sm-3 control-label no-padding-right" for="instanceId">所属系统:</label>
							 <div class="col-sm-9 inline-height ">
							   <select placeholder="所属系统" name="instanceId" class="col-xs-10">
									<% for(res in sysFlags!){ %>
									  <option value="${res.id}">${res.nameStr}</option>
								　　   <% } %>
								</select>
						  	 </div>
						  </div>
					   <% } %>
				  <%}else{%>
				       <input type="hidden"  name="instanceId" value="${sys_flag}">
				    <% } %>
				  <div class="form-group col-md-5">
				     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
				     <div class="col-sm-9 inline-height">
					    <input type="text"  value="" oldval="" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
					  </div>
				  </div>	  
		  </form>
  		 </div>
  	 </div>
</div><!-- #dialog-message -->
